<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
 
<!DOCTYPE HTML>
<html lang="zh-CN">
  <head>
 
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <title>修改设计（整车平台）-头部(JSP导入)</title>
    
    <%@ include file="../common/common.jsp"%>
    
	<link href="<%=basePath %>/resources/css/system/index/common.css" rel="stylesheet"></link>
	<link href="<%=basePath %>/resources/css/system/index/client.css" rel="stylesheet"></link>
 
    <script src="<%=basePath %>/resources/js/system/carDesign/btnStyle.js" type="text/javascript"></script>

    
	<!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
  	
  	<div class="design-head">
		<div class="design-headLeft btnBox">
			<a class="a-black activeBtn" href="javascript:location.reload()">整车平台</a>
			<a class="a-black" href="front/partDesign/partDesignModify?type=cardesign&designid=${param.id}">零部件库</a>
		</div>
 			
 			
<%--  	 	<c:if test="${param.designname==null}"> --%>
	  		<div class="design-headRight right" id="designComplete">
				<a class="a-black">
	 				<div class="design-headImg">
	 					<img src="<%=basePath %>/resources/images/close.png"/>
	 				</div>
	 				<div>完成</div>
				</a>
			</div>  
<%-- 		</c:if>	 --%>
 	</div>
 	
    <!-- Modal 完成-->
	<div class="modal fade" id="modifyHeadModal" tabindex="-1" role="dialog" aria-labelledby="carModifyModalLabel" data-backdrop="static">
	  <div class="modal-dialog modal-sm">
	    <form action="">
		    <div class="modal-content">
		      
		      <div class="modal-body">
				  <div class="carModal-body">
				    <i class="fa fa-check-circle"></i>
				    <span>您是否确定要退出?</span>
				  </div>
		      </div>
		      
		      <div class="modal-footer carModal-footer">
		        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		        <button type="button" class="btn btn2 a-white" onclick="designBack();">保存并退出</button>
		      </div>
		      
		    </div>
	     </form>
	  </div>
	</div>
 	
 	<script type="text/javascript">
  		function designBack(){
 
			//判断返回的路径
			if('${param.logopart!=null}'=='false'){
			
			    submitCarDesignform('${carDesignModel.carid}','${param.designname==null? 2:3}');
			
			}else if('${param.logopart!=null}'=='true'){
			
			    submitCarLogoModify();
				window.location.href="<%=basePath %>front/carDesign/carDesignModify?id=${param.id}";
			
			}
  		}
  	</script>

  	
  </body>
</html>
